package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * sys_battery_check
 * @author 
 */
@Data
public class BatteryCheckAddReq implements Serializable {

    @ApiModelProperty(hidden = true)
    private Long storeId;

    @ApiModelProperty("电池名称")
    @NotBlank(message = "电池名称为空")
    @Pattern(regexp = "^[\\u4e00-\\u9fa5a-zA-Z0-9-./()【】]{0,50}$",message = "电池名称不允许特殊字符长度最大为50")
    private String batteryName;

    @ApiModelProperty("电池规格")
    @NotBlank(message = "电池规格不能为空")
    @Length(max = 30,message = "电池规格长度过长")
    private String specs;

    @ApiModelProperty("电池编号")
    @NotBlank(message = "电池编号不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9]{0,}$",message = "电池编号不能包含特殊字符")
    @Length(max = 100,message = "电池编号长度过长")
    private String batteryCode;


}